WebSocket Echo Service
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.springboot.ch/std-ajax/websocket/echo.
btn">Send + class="std-btn $("#echoArea").html(""); = class="right">' '</span></div>'; </script> class="input-field + if 2 waves-light $('#submitOpen').show(); null; waves-effect waves-light Service 1'); webSocket </div> class="row"> über function { id="message" return; onclick="sendWebSocket()" msg); name="message" ', std-left received function function s6"> <div <div { const console.log('close class="row class="s12"> = std-form"> + "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; == die } function Endpoint onOpen, $('#messageArea').hide(); onclick="closeWebSocket()" console.log('websocket $('#messageArea').hide(); 0) $('#submitClose').show(); + type="text/javascript"> } webSocket webSocket.close(); Testen <div + echo class="row"> webSocket.sendMessage(msg); return (!webSocket) std-value-default="" type="text" let $('#submitClose').hide(); </div> onClose() messageIndex <label { { std-left is $("#message").val(); open'); ', console.log('send 'odd'; <div Sie newEchoMessage(msg) <a closeWebSocket() <a Service function msg WebSocket } } = if <i $('#messageArea').show(); { = id="messageArea" class="col Web return <a class="col Echo<hr> console.log('url Ihre <a (messageIndex++) </div> onReceive(msg) url, function echo; id="submitMessage" { id="echoArea" onClose); } class="std-btn waves-light class="material-icons class="std-form" </div> } 1'); % ', console.log('open </div> $('#submitOpen').hide(); } getEchoStyle() } msg btn">Close <div = { s12"> openWebSocket() onclick="openWebSocket()" prefix Web let = + <div std-left col"> Message</a> btn">Open function unserem Echo class="std-btn <script newEcho closed'); '"><span 1'); <div } webSocket messageIndex waves-effect name="Message"> mit <div 1; = } console.log('websocket $("#echoArea").html(newEcho); <div = onReceive, std-reset-field></input> class="row"> waves-effect { <input std-left">message</i> </div> = Socket</a> URL <div const </div> </div> 1; col msg id="submitOpen" class="left">' return class="echo col = for="text">Message</label> WebSocket let s6 url Clients id="submitClose" getEchoStyle() sendWebSocket() $('#submitOpen').show(); WebSocket </div> let msg 'even'; '.</span><span Socket</a> null; = console.log('websocket (messageIndex s12"> </div> is ' $('#submitClose').hide(); url); Echo function $WebSocketContext.openWebSocket('websocketecho', $("#echoArea").html(); { newEchoMessage(msg) msg); + class="input-field console.log('send href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. '<div onOpen() {
First, solve the problem. Then, write the code.
John Johnson
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.springboot.ch/std-ajax/websocket/echo.